export default [
  {
    path: '/',
    redirect: '/homepage'
  },
  // 这里是首页的路由
  {
    path: '/homepage',
    name: 'homepage',
    component: () => import('@/views/homepage'),
    children: [
      
    ],
    meta: {
      // 显示底部菜单
      setShowFooter: true,
      login: true
    }
  },
  // 下面是演出详情页的路由
  {
    path: '/homepage/:id',
    name: 'homepageDetail',
    component: () => import('@/views/showDetail'),
    meta: {
      setShowFooter: false
    },
    // 设置为true，则会把动态路由参数通过props属性来接受
    // props: true
    props: route => ({ dramaId: route.params.id ? Number(route.params.id) : 0 })
  },
  //下面是购买页的路由
  {
    path: '/homepage/buynow/:id',
    name: 'buynow',
    component: () => import('@/views/buynow'),
    meta: {
      setShowFooter: false
    },
    // 设置为true，则会把动态路由参数通过props属性来接受
    // props: true
    props: route => ({ dramaId: route.params.id ? Number(route.params.id) : 0 })
  }
]
